<!-- Breadcrums -->
<?php $this->load->view('helpers/breadcrums.php'); ?>
<!-- Breadcrum -->
<div class="container">
	<div id="main">
		<div class="row">
			<div class="span9">
				<div class="w-box-content cnt_a">
					<div class="list-your-property-form">
						<div class="content">
							<div class="row-fluid"><?php if ($success) { ?>
								<div class="alert alert-success">
								<h3>Thank you. Your property has been submitted.</h3>
								</div>
								<?php } ?>
								<div class="span8 offset2">
									<form class="" method="post" action="<?php echo base_url(); ?>addyourproperty" enctype="multipart/form-data" id="validate_field_add_your_property">
										<input type="hidden" name="action" value="sendenquiry">
									<fieldset><legend>Add Your Property</legend>
									<div class="control-group"><label class="control-label req"
										for="inputPropertyFor">Property For</label>
									<div class="controls"><select name="propertyfor" id="inputPropertyFor"
										class="span12">
										<option value="sale">Sale</option>
										<option value="rent">Rent</option>
									</select></div>
									</div>
									<div class="control-group"><label class="control-label req"
										for="inputPropertyType"><?php echo $text_property_classification; ?></label>
									<div class="controls"><select name="ddlPropertyClss"
										id="ddlPropertyClss" class="span12">
										<option selected="selected" value=""><?php echo $text_all; ?></option>
										<?php foreach($dd_propertycategory as $val) { ?>
										<option value="<?php echo $val->Type; ?>"><?php echo $val->Type; ?></option>
										<?php } ?>
									</select></div>
									</div>
									<div class="control-group"><label class="control-label req"
										for="inputPropertyType"><?php echo $text_propertytype; ?></label>
									<div class="controls"><select name="propertytype"
										id="inputPropertyType" class="span12">
										<option value="" selected="selected"><?php echo $text_all; ?></option>
									</select></div>
									</div>
									<div class="control-group"><label class="control-label"
										for="inputProjectName">Project Name</label>
									<div class="controls"><input type="text" id="projectname"
										name="projectname" value="" placeholder="Project Name" class="sepH_b">
									</div>
									</div>
									<div class="control-group"><label class="control-label req"
										for="inputCity">City</label>
									<div class="controls"><select name="city" id="city" class="span12">
									<?php foreach ($lkup_cities as $city) { ?>
										<option value="<?php echo $city->City_ID; ?>"><?php echo $city->Name; ?></option>
										<?php } ?>
									</select></div>
									</div>
									<div class="control-group" id="Add_Your_Property_Location"><label
										class="control-label req" for="inputLocation">Location</label>
									<div class="controls"><select name="sublocation" id="sublocation"
										class="span12">
										<option value="">All</option>
									</select></div>
									</div>
									<div class="control-group" id="Add_Your_Property_SubArea"><label
										class="control-label req" for="inputSubArea">Sub Area</label>
									<div class="controls"><select name="subarea" id="subarea" class="span12">
										<option value="">All</option>
									</select></div>
									</div>
									<div class="control-group"><label class="control-label"
										for="inputAddress">Address</label>
									<div class="controls"><input type="text" maxlength="20" id="address"
										name="address" value="" placeholder="Address"></div>
									</div>
									<div class="price control-group">
									<div class="controls"><input type="text" id="price" name="price"
										value="" placeholder="Price"></div>
									</div>
									<div class="priceunit control-group">
									<div class="controls"><select name="priceunit" id="priceunit"
										class="span12">
										<option value="IDR">IDR</option>
										<option value="USD">USD</option>
									</select></div>
									</div>
									<div class="control-group"><label class="control-label req"
										for="inputBedrooms">Bedrooms</label>
									<div class="controls"><select name="bedroom" id="bedroom" class="span12">
										<option value="0" selected="selected"><?php echo $text_studio; ?></option>
										<?php for($i = 1; $i <= 10; $i++) { ?>
										<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
										<?php } ?>
									</select></div>
									</div>
									<div class="control-group"><label class="control-label req"
										for="inputBathrooms">Bathrooms</label>
									<div class="controls"><select name="bathroom" id="bathroom"
										class="span12">
										<?php for($i = 1; $i <= 10; $i++) { ?>
										<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
										<?php } ?>
									</select></div>
									</div>
									<div class="area control-group">
									<div class="controls"><input type="text" id="area" name="area" value=""
										placeholder="Area"></div>
									</div>
									<div class="areaunit control-group">
									<div class="controls"><select name="areaunit" id="areaunit"
										class="span12">
										<option value="SqM">SqM</option>
									</select></div>
									</div>
									<div class="control-group"><label class="control-label req"
										for="inputTenure">Tenure</label>
									<div class="controls"><select name="tenure" id="tenure" class="span12">
										<option value=""><?php echo $text_all_tenure; ?></option>
										<?php if(count($tenure) > 0) { ?>
										<?php foreach ($tenure as $item) { ?>
										<option value="<?php echo $item->Tenure_ID; ?>"><?php echo $item->Name; ?></option>
										<?php } ?>
										<?php } ?>
									</select></div>
									</div>
									<div class="control-group"><label class="control-label"
										for="inputKeyFeatures">Key Features</label>
									<div class="controls"><input type="text" id="keyfeatures"
										name="keyfeatures" value="" placeholder="Key Features"></div>
									</div>
									<div class="control-group"><label class="control-label"
										for="inputYourName">Your Name</label>
									<div class="controls"><input type="text" id="name" name="name" value=""
										placeholder="Your Name"></div>
									</div>
									<div class="control-group"><label class="control-label"
										for="inputYourEmail">Your Email</label>
									<div class="controls"><input type="text" id="email" name="email"
										value="" placeholder="Your Email"></div>
									</div>
									<div class="control-group"><label class="control-label"
										for="inputMobileNo">Mobile No</label>
									<div class="controls"><input type="text" id="mobile" name="mobile"
										value="" placeholder="Mobile No"></div>
									</div>
									<div class="control-group"><label class="control-label"
										for="inputUpload">Upload Images</label>
									<div class="controls">
									<div class="row-fluid">
									<div class="span4">
									<div class="fileupload fileupload-new" data-provides="fileupload">
									<div class="fileupload-new thumbnail"
										style="width: 150px; height: 150px;"><img
										src="<?php echo $this->config->item('HTTP_IMAGE'); ?>dummy_150x150.gif"
										alt=""></div>
									<div class="fileupload-preview fileupload-exists thumbnail"
										style="max-width: 150px; max-height: 150px; line-height: 20px;"></div>
									<div><span class="btn btn-small btn-file"> <span class="fileupload-new">Select
									image</span> <span class="fileupload-exists">Change</span> <input
										type="file" name="image1"> </span> <a href="#"
										class="btn fileupload-exists" data-dismiss="fileupload">Remove</a></div>
									</div>
									</div>
									<div class="span4">
									<div class="fileupload fileupload-new" data-provides="fileupload">
									<div class="fileupload-new thumbnail"
										style="width: 150px; height: 150px;"><img
										src="<?php echo $this->config->item('HTTP_IMAGE'); ?>dummy_150x150.gif"
										alt=""></div>
									<div class="fileupload-preview fileupload-exists thumbnail"
										style="max-width: 150px; max-height: 150px; line-height: 20px;"></div>
									<div><span class="btn btn-small btn-file"> <span class="fileupload-new">Select
									image</span> <span class="fileupload-exists">Change</span> <input
										type="file" name="image2"> </span> <a href="#"
										class="btn fileupload-exists" data-dismiss="fileupload">Remove</a></div>
									</div>
									</div>
									<div class="span4">
									<div class="fileupload fileupload-new" data-provides="fileupload">
									<div class="fileupload-new thumbnail"
										style="width: 150px; height: 150px;"><img
										src="<?php echo $this->config->item('HTTP_IMAGE'); ?>dummy_150x150.gif"
										alt=""></div>
									<div class="fileupload-preview fileupload-exists thumbnail"
										style="max-width: 150px; max-height: 150px; line-height: 20px;"></div>
									<div><span class="btn btn-small btn-file"> <span class="fileupload-new">Select
									image</span> <span class="fileupload-exists">Change</span> <input
										type="file" name="image3"> </span> <a href="#"
										class="btn fileupload-exists" data-dismiss="fileupload">Remove</a></div>
									</div>
									</div>
									</div>
									</div>
									</div>
									<div class="control-group">
									<div class="controls">
									<button type="submit" class="btn btn-primary btn-large">Submit</button>
									</div>
									</div>
									</fieldset>
									<input type="hidden" name="latitude" id="latitude" /> 
									<input type="hidden" name="longitude" id="longitude" /> 
									<input type="hidden" name="propertyfor_value" id="propertyfor_value" value="Sale" /> 
									<input type="hidden" name="propertytype_value" id="propertytype_value" /> 
									<input type="hidden" name="city_value" id="city_value" /> 
									<input type="hidden" name="locality_value" id="locality_value" /> 
									<input type="hidden" name="district_value" id="district_value" /> 
									<input type="hidden" name="priceunit_value" id="priceunit_value" /> 
									<input type="hidden" name="tenure_value" id="tenure_value" />
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="sidebar span3"><?php $this->load->view('helpers/widgets/ad.php'); ?>
			</div>
		</div>
	</div>
</div>
